import './App.less';
import React, { Component } from 'react'
import { BrowserRouter } from 'react-router-dom'
import RouterMap from './router/router'
import{adminLogin} from './api/api' 
export default class App extends Component {
  componentDidMount(){
    adminLogin({adminName:"admin",adminPassword:"Hhxy@xxhbgs5"}).then(res=>{
      if(res.code===20000){
        sessionStorage.setItem("yiQingToken",res.data)
      }
    })
  }

  render() {
    return (
      <div>
        <BrowserRouter>
          <RouterMap />
        </BrowserRouter>
      </div>
    )
  }
}
